package com.tuanzi.loan.business.entity.settlementsystem;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * @author caiwanlin
 * @create 2018-08-16 19:16
 */
@Data
@Entity
@Table(name = "loan_settlement_product")
@EqualsAndHashCode(callSuper = true)
public class SettlementProduct extends AuditEntity {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotBlank
    @Column(name = "product_name")
    private String productName;

    @Column(name = "spread_channel")
    private Integer spreadChannel;

    @Column(name = "spread_mode")
    private Integer spreadMode;

    @NotNull
    @Column(name = "cop_mode")
    private Integer copMode;

    @Column(name = "price_cpa")
    private Double priceCpa;

    @Column(name = "price_cps")
    private Double priceCps;

    @NotNull
    @Column(name = "settlement_mode")
    private Integer settlementMode;

    @NotNull
    @Column(name = "income_type")
    private Integer incomeType;

    @Column(name = "activity_id_str")
    private String activityIdStr;

    @Column(name = "company_id")
    private Long companyId;

    @Column(name = "remark")
    private String remark;


}
